﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="details.aspx.vb" Inherits="island.details" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<br />
<br />


 <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
   
   </p>
    <p>
        
    </p>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:IslandConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:IslandConnectionString.ProviderName %>" 
            
            SelectCommand="SELECT [Postcode], [Website], [PhoneNumber], [Description], [IslandPicture], [MitchelinStars], [Location], [IslandName], [ID], [PlacestoVisit] FROM [tour] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" DataSourceID="SqlDataSource1" Width="732px">
            <Columns>
                <asp:BoundField DataField="Postcode" HeaderText="Postcode" 
                    SortExpression="Postcode" />
                <asp:BoundField DataField="Website" HeaderText="Website" 
                    SortExpression="Website" />
                <asp:BoundField DataField="PhoneNumber" HeaderText="PhoneNumber" 
                    SortExpression="PhoneNumber" />
                <asp:BoundField DataField="MitchelinStars" HeaderText="MitchelinStars" 
                    SortExpression="MitchelinStars" />
                <asp:ImageField DataImageUrlField="IslandPicture" HeaderText="Thumbnail">
                    <ControlStyle Height="100px" Width="100px" />
                </asp:ImageField>
                <asp:BoundField DataField="Location" HeaderText="Location" 
                    SortExpression="Location" />
                <asp:BoundField DataField="IslandName" HeaderText="IslandName" 
                    SortExpression="IslandName" />
                <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                    ReadOnly="True" SortExpression="ID" />
                <asp:BoundField DataField="PlacestoVisit" HeaderText="PlacestoVisit" 
                    SortExpression="PlacestoVisit" />
            </Columns>
        </asp:GridView>
        <br />
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" DataSourceID="SqlDataSource2">
            <Columns>
                <asp:BoundField DataField="Author" HeaderText="Author" 
                    SortExpression="Author" />
                <asp:BoundField DataField="Comment" HeaderText="Comment" 
                    SortExpression="Comment" />
                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                <asp:BoundField DataField="Island_fkID" HeaderText="Island_fkID" 
                    SortExpression="Island_fkID" />
                <asp:HyperLinkField DataNavigateUrlFields="ID" 
                    DataNavigateUrlFormatString="Ratecomment.aspx?ID={0}" Text="Rate" />
                <asp:HyperLinkField DataNavigateUrlFields="ID" 
                    DataNavigateUrlFormatString="like.aspx?ID={0}" Text="Like This" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:IslandConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:IslandConnectionString.ProviderName %>" 
            SelectCommand="SELECT [Author], [Comment], [Title], [ID], [Island_fkID] FROM [Comments] WHERE ([Island_fkID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="Island_fkID" QueryStringField="ID" 
                    Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;Title&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="tb_title" runat="server"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;
    </p>
    <p>
        <asp:TextBox ID="tb_comment" runat="server" Height="113px" TextMode="MultiLine" 
            Width="271px"></asp:TextBox>
    </p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;<asp:Button ID="btn_addcomment" runat="server" Text="AddComment" />
    </p>
    <p>
        <asp:CheckBoxList ID="cb_tag" runat="server" DataSourceID="SqlDataSource3" 
            DataTextField="TagName" DataValueField="ID">
        </asp:CheckBoxList>
    </p>
    <p>
        <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
            ConnectionString="<%$ ConnectionStrings:IslandConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:IslandConnectionString.ProviderName %>" 
            SelectCommand="SELECT [ID], [TagName] FROM [tag]"></asp:SqlDataSource>
    </p>
    <p>
        <asp:Button ID="btn_at" runat="server" Text="Tag Island" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Add NewTag&nbsp;
        <asp:TextBox ID="tb_nt" runat="server"></asp:TextBox>
&nbsp;&nbsp;
        <asp:Button ID="btn_nt" runat="server" Text="Button" Width="77px" />
    </p>
    <p>
        &nbsp;</p>
</asp:Content>
